using System;
using System.Runtime.Serialization;

namespace CCWP7.Model
{
    [DataContract]
    public class ProjectReport : IProjectReport
    {
        [DataMember]
        public string Name { get; set; }
        [DataMember]
        public string Category { get; set; }
        [DataMember]
        public string Activity { get; set; }
        [DataMember]
        public string Status { get; set; }
        [DataMember]
        public string LastBuildStatus { get; set; }
        [DataMember]
        public string LastBuildLabel { get; set; }
        [DataMember]
        public DateTime LastBuildTime { get; set; }
        [DataMember]
        public DateTime NextBuildTime { get; set; }
        [DataMember]
        public string WebUrl { get; set; }
        [DataMember]
        public string BuildStage { get; set; }
        [DataMember]
        public string ServerName { get; set; }

        public override int GetHashCode()
        {
            return string.Format("{0} {1} {2}", ServerName, Name, WebUrl).GetHashCode();
        }
    }
}
